package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreation extends TestBase {
 

  @Test
  public void nonEmptyContactCreation() throws Exception {
    openWebPage();
    gotoLinkPage("add new");
    fillContactForm(new ContactData("firstname", "last name1", "adress 1", "0491111111", "0492222222", "0493333333", "e-mail@gmail.com", "e-mail2@gmail.com", "1", "January", "1983", "group 1", "secondary address", "home"));
    submitContactCreation();
    gotoHomePage();
  }
  
  @Test
  public void emptyContactCreation() throws Exception {
    openWebPage();
    gotoLinkPage("add new");
    fillContactForm(new ContactData());
    submitContactCreation();
    gotoHomePage();
  }

}
